<%@ page import="java.util.ArrayList" %>
<%@ page import="com.chenshuang.com.chenshuang.bean.Student" %><%--
  Created by IntelliJ IDEA.
  User: 12994
  Date: 2022/4/14
  Time: 19:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>首页</title>
  </head>
  <body>
  <b >欢迎尊敬的${username.username}_上线</b>
  <h2 style="font-max-size: xxx-large; color:orange"  align="center" >
    <a href="index.jsp" style="color: red">返回首页</a>
  </h2>
  <table border="1" cellspacing="0" width="400" align="center">
    <tr>
      <th>序号</th>
      <th>学号</th>
      <th>姓名</th>
      <th>年龄</th>
      <th>地址</th>
      <th>手机号</th>
    </tr>
    <c:forEach items="${list}" var="li">
      <tr>
        <td>${li.id}</td>
        <td>${li.stuid}</td>
        <td>${li.name}</td>
        <td>${li.age}</td>
        <td>${li.address}</td>
        <td>${li.phonenum}</td>
      </tr>
    </c:forEach>
  </table>

  </body>
</html>
